FROM openjdk:8-jre

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" >> /etc/timezone

ENV JAVA_OPTS ''

WORKDIR /app
ADD target/eureka-1.5.0.jar .

EXPOSE 8761

ENTRYPOINT java $JAVA_OPTS -jar eureka-1.5.0.jar